<?php

namespace addons\shopro\model;

use addons\shopro\exception\Exception;
use think\Model;
use app\common\library\Auth;
use think\Db;
use think\Log;

/**
 *
 */
class Breed extends Model
{
    protected $name = 'shopro_cat_breed';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;

    /**
     * 图片地址处理
     * @param $value
     * @return string
     * @Author ycr <E-mail:yuncran@126.com>
     */
    public function getImageAttr($value)
    {
        return cdnurl($value, true);
    }
}
